package com.example.demo.service.impl;

import com.example.demo.mapper.SysRoleMapper;
import com.example.demo.mapper.entity.SysRole;
import com.example.demo.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Lucy
 * @create 2024-02-04 15:03
 */
@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;
    @Override
    public SysRole getRoleByUserId(int userId) {
        return sysRoleMapper.getRoleByUserId(userId);
    }
}
